﻿@{
    ViewBag.Title = "Liên hệ";
    SCS.Business.MembershipService _membershipServices = new SCS.Business.MembershipService();
    string userName = User.Identity.Name;
    var user = _membershipServices.GetUser(userName);
    if (user.MembershipRoles.FirstOrDefault().roleID == 2)
    {
        Layout = "~/Views/Shared/_ParentsLayout.cshtml";
    }
    else
    {
        Layout = "~/Views/Shared/_TeacherLayout.cshtml";
    }
}
<div id="page-heading">
    <h1>Thông Tin Liên Hệ</h1>
</div>
<div class="container">
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h4>Liên hệ</h4>
                </div>
                <div class="panel-body">
                    <hgroup class="title">
                        <h2>Trường trung học cơ sở FPT</h2>
                    </hgroup>

                    <section class="contact">
                        <header>
                            <h3>Điện thoại</h3>
                        </header>
                        <p>
                            <span style="font-weight:600">Máy 1:</span>
                            <span>043.860.177</span>
                        </p>
                        <p>
                            <span style="font-weight:600">Máy 2:</span>
                            <span>0433.652.042</span>
                        </p>
                    </section>

                    <section class="contact">
                        <header>
                            <h3>Email</h3>
                        </header>
                        <p>
                            <span style="font-weight:600">Hành chính:</span>
                            <span>thcs-fpt@gmail.com</></span>
                        </p>
                        <p>
                            <span style="font-weight:600">Hỗ trợ hệ thống thông tin:</span>
                            <span>fu-slldt@googlegroups.com</span>
                        </p>
                    </section>

                    <section class="contact">
                        <header>
                            <h3>Địa chỉ</h3>
                        </header>
                        <p>
                            Khu TH2 - Khu đô thị Dịch Vọng - Cầu Giấy - Hà Nội
                        </p>
                    </section>
                    @if (user.MembershipRoles.FirstOrDefault().roleID == 2)
                    {
                        <section class="map">
                            <header>
                                <h3>Bản đồ</h3>
                            </header>
                            <p>
                                <iframe width="500" height="350" src="https://maps.google.com/maps/ms?msid=211022548494265124991.0004d26450a09e22d22b1&amp;msa=0&amp;ie=UTF8&amp;ll=21.027189,105.791495&amp;spn=0.009894,0.021136&amp;t=m&amp;output=embed"></iframe>
                            </p>
                        </section>
                    }
                </div>
            </div>
        </div>

    </div>
</div>

